package org.jsola.hr.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.jsola.core.dto.BaseDTO;

import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * 公司系统公告信息
 *
 * @author zhr
 */
@EqualsAndHashCode(callSuper = true)
@ApiModel(description = "【公司系统公告下线】的参数")
@Data
public class CompanySysNoticeOfflineDTO extends BaseDTO {

    private static final long serialVersionUID = 1L;


    @ApiModelProperty(notes = "公告下线时间(公告非立即下线时必填)")
    private Date offlineDate;

    @ApiModelProperty(notes = "公告立即下线", example = "true", required = true)
    @NotNull(message = "请选择公告是立即下线还是定时下线")
    private Boolean isOfflineNow;


}

